<!DOCTYPE html>
<!--[if IE 8]>
<html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->

<head>
    <meta charset="UTF-8">
    <title>角色管理</title>
    [#include "../../../include/header.ftl" /]
    <link href="${ctx}/static/js/chosen/bootstrap-chosen.css" rel="stylesheet">
    <link href="${ctx}/static/css/layout-default.css" rel="stylesheet">
    <script type="text/javascript" src="${ctx}/static/js/jquery/layout/jquery-ui-1.11.0.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/jquery/layout/jquery.layout.js"></script>
    <script type="text/javascript"
        src="${ctx}/static/apls/assets/plugins/jquery-validation/jquery.validate.min.js"></script>
    <script type="text/javascript"
        src="${ctx}/static/apls/assets/plugins/jquery-validation/localization/messages_zh.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/apls/assets/plugins/jquery-validation/validateEx.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/chosen/chosen.jquery.min.js"></script>
    <style type="text/css">
        .panel-body {
            padding: 0px 15px;
        }
    </style>
</head>

<body class="my-gp my-p5">
    <div class="search_cos" >
        <form method="post" id="form_search" class="form-horizontal">
            <div class="col-sm-12">
                <div class="row">
                    <div class="col-sm-3">
                        <div class="form-group margin-bottom-0">
                            <label for="s_name" class="full-left control-label" style="width: 80px">角色名称：</label>
                            <div class="full-left">
                                <input class="form-control" type="text" name="s_name" id="s_name" />
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <button type="submit" id="but" class="btn btn-primary">
                            <i class="fa fa-search"></i> 查询
                        </button>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="select_table col-md-12 col-sm-12">
            <div class="row">
                <div class="margin-bottom-0">
                    <div class="panel-body">
                        <table class="table" id="table1" data-show-footer="false" data-row-style="rowStyleFormatter"
                            data-pagination="true" data-side-pagination="server">
                        </table>
                    </div>
                </div>
            </div>
    </div>
    <div id="roleopt" style="display: none;height: 100%">
        <div id="layrole" style="height: 100%" class="dalBox">
            <div class="ui-layout-west">
                <div class="form-body">
                    <form role="form" class="form-horizontal" id="form_opt">
                        <div class="col-md-12 col-sm-12">
                            <div class="row">
                                <div class="col-md-12 col-sm-12">
                                    <div class="form-group">
                                        <label class="col-md-4 control-label">角色名称</label>
                                        <div class="col-md-8">
                                            <div class="input-icon right">
                                                <input data-type="rep" type="text" id="roleName" name="roleName"
                                                    class="form-control" placeholder="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-12 col-sm-12">
                                    <div class="form-group">
                                        <label class="col-md-4 control-label">角色代码</label>
                                        <div class="col-md-8">
                                            <div class="input-icon right">
                                                <input data-type="rep" type="text" id="roleCode" name="roleCode"
                                                       class="form-control" placeholder="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-12 col-sm-12">
                                    <div class="form-group">
                                        <label class="col-md-4 control-label">角色描述</label>
                                        <div class="col-md-8">
                                            <div class="input-icon right">
                                                <textarea data-type="rep" type="text" name="remark" id="remark"
                                                    class="form-control" placeholder="" rows="5"></textarea>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <input id="menus" name="menus" type="hidden">
                                <input id="roleId" name="roleId" type="hidden">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="ui-layout-center">
                <div class="panel panel-default">
                    <div class="panel-heading">模块</div>
                    <div class="panel-body">
                        <div id="menu_tree" class="ztree" style="overflow: auto;">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="table1Toolbar">
        <div class="grid-btn">
            <a class="btn btn-primary" id="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a class="btn btn-primary" id="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a class="btn btn-primary" id="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
    </div>
    <script type="text/javascript" src="${ctx}/static/js/adx/sys/role.js?v=0.7"></script>
</body>

</html>